# t=(1,)
# print(type(t))


# t=(1,2,3,"dwed",[3423,343,"d34"])
# print(type(t))

# tuple=1,2,3,"sz"
# print(tuple,type(tuple))

#列表转换成元组
# l=[1,2,3,4]
# changeTuple=tuple(l)
# print(changeTuple,type(changeTuple))
#
# t3=(1,2,("a","b"))
# print(t3,type(t3))

#只能查询 不能修改
t=(1,2,3,4,5)

''''
#error
del t[0]
t[0]=66
'''

# print(t[- 1])
# print(t[::2])
# print(t[::-1])


# t=(1,2,3,4,2)
# c=t.count(2)
# print(c)
#
# idx=t.index(4)
# print(idx)
# length=len(t)
# print(length)
#
# maxNum=max(t)
# minNum=min(t)
# print(maxNum,minNum)

#判定
# print(1 in t)
# print(4 not in t)

# result=(1,2)>(3,4)
# print(result)

# print((1,2)*3)

# print("abc"+"123")
# print([1,2]+[3,4])
# print((1,2)+(3,4))
# # print((1,2)+[3,4])#error

# a=10
# b=20
# t=(a,b)
# print(t[0],t[1])

# a=1
# b=2
# b,a=(a,b)
# print(a,b)